package com.weilan.ark3.common;

public class GlobalParam {
    //峰谷初始状态
    public static int fgState = 0;

    //备电初始状态
    public static int backState = 0;

    //SOC区间控制状态
    public static int socState = 0;

    //适用于SOC区间控制的降功率为0
    public static int backZero = 0;
    public static int fengguZero = 0;
    public static int pvZero = 0;


    public static int PVState = 0;
//    public static int PVState2 = 0;
//    public static int PVState3 = 0;
//    public static int PVState4 = 0;
//    public static int PVState5 = 0;

    //通讯中断标识(默认)
    public static int commFail = 0;


    //防逆流状态(默认开启)
    public static int nlState = 1;

    //防逆流P_CMD
    public static int p_cmd = 0;

    //0功率
    public static int zeroP = 0;

    //系统启动
    public static int start = 6;
    public static int stop = 2;

    //定义一个广播码
    public static int guangbo = 255;

    //uc启停地址
    public static int onoff =301;

    //uc功率地址
    public static int power = 302;

    //禁止充放的标志 0:默认 1：禁止充放 2：禁充
    public static int bansign = 0;

    //峰谷中0功率计算标准
    public static int a = 0;

    //COM1通讯中断标志 （0：正常   1：异常）
    public static int com1Fault = 0;

    //COM2通讯中断
    public static int com2Fault = 0;

    //COM3通讯中断
    public static int com3Fault = 0;


    public static String[] cacheFaultKey = new String[]{
            "120", "121","122", "123","517","518",
            "1027", "1028","1029", "1030", "1035", "1036","1037", "1038",
            "2043", "2044","2045","3043", "3044","3045", "4030", "4032", "4033",
    };
//    public static String[] dataToCacheCMD = new String[cacheFaultKey.length];


}